﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LoginCtrl.ascx.cs" Inherits="OurCouse.WebApp.Ctrls.LoginCtrl" %>

<table>
<tr>
	<td>
		<span>用户登录</span>
		<span>用户名</span>
	</td>
	<td>
		<asp:TextBox runat="server" ID="_txtUserName" />
		<asp:RegularExpressionValidator runat="server" ID="_validUserName" ControlToValidate="_txtUserName" ValidationExpression="[a-z]*" ErrorMessage="用户名只能为英文字母" Display="Dynamic" />
	</td>
	<td>
		<span>密码</span>
	</td>
	<td>
		<asp:TextBox runat="server" ID="_txtUserPass" TextMode="Password" />
		<asp:RequiredFieldValidator runat="server" ID="_validPassword" ControlToValidate="_txtUserPass" ErrorMessage="请输入密码" Display="Dynamic" />
	</td>
	<td>
		<asp:Button runat="server" ID="_btnLogin" Text="登录" />
		<a href="Register.aspx" target="_blank">我要注册</a>
	</td>
</tr>
</table>
